import { defineStore } from 'pinia'

const userStore = defineStore('user', {
    state:()=>{
        return {
            token:'',
            username:'',
           
    }
},
getters:{
    getToken():string{
        return this.token
    } ,
    getUsername():string{
        return this.username
    } ,
  
},
actions:{
    setToken(token:string){
        this.token = token
    },
    setUsername(username:string){
        this.username = username
    },
   
}
})
export default userStore